package view;

import javax.swing.table.AbstractTableModel;

import model.os.OS;
import model.system.HardDisk;

public class HardDiskView extends AbstractTableModel {

	private static final long serialVersionUID = -4896263933106231067L;

	public static final int COLUMNS = 15;
	
	public int getColumnCount() {
		return COLUMNS;
	}

	public int getRowCount() {
		return HardDisk.SIZE / COLUMNS;
	}

	public Object getValueAt(int row, int col) {
		return OS.getInstance().getHardDisk().getSlot(row * COLUMNS + col);
	}
	
	@Override
	public String getColumnName(int column) {
		return "";
	}
	
}
